package org.example.baseinfo.common.page;


public class HxPageRequest<T> {
    private int pageNum;
    private int pageSize;
    private boolean isAsc;
    private String orderBy;
    private T query;

    /**
     * Getter method for property <tt>pageNum</tt>.
     *
     * @return property value of pageNum
     */
    public int getPageNum() {
        return pageNum;
    }

    /**
     * Setter method for property <tt>pageNum</tt>.
     *
     * @param pageNum value to be assigned to property pageNum
     */
    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    /**
     * Getter method for property <tt>pageSize</tt>.
     *
     * @return property value of pageSize
     */
    public int getPageSize() {
        return pageSize;
    }

    /**
     * Setter method for property <tt>pageSize</tt>.
     *
     * @param pageSize value to be assigned to property pageSize
     */
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    /**
     * Getter method for property <tt>isAsc</tt>.
     *
     * @return property value of isAsc
     */
    public boolean isAsc() {
        return isAsc;
    }

    /**
     * Setter method for property <tt>isAsc</tt>.
     *
     * @param isAsc value to be assigned to property isAsc
     */
    public void setAsc(boolean asc) {
        isAsc = asc;
    }

    /**
     * Getter method for property <tt>orderBy</tt>.
     *
     * @return property value of orderBy
     */
    public String getOrderBy() {
        return orderBy;
    }

    /**
     * Setter method for property <tt>orderBy</tt>.
     *
     * @param orderBy value to be assigned to property orderBy
     */
    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    /**
     * Getter method for property <tt>query</tt>.
     *
     * @return property value of query
     */
    public T getQuery() {
        return query;
    }

    /**
     * Setter method for property <tt>query</tt>.
     *
     * @param query value to be assigned to property query
     */
    public void setQuery(T query) {
        this.query = query;
    }
}
